package com.lanou3g.code0409.common;

import java.util.Scanner;

/**
 * Created by dllo on 18/4/9.
 */
public class Repeat {
    public static void main(String[] args) {
        //  用户输入两次 密码 判断 是否一致
        System.out.println("请输入密码");
        Scanner scanner = new Scanner(System.in);
        String pwd = scanner.nextLine();
        System.out.println("请输入确认密码");
        String pwd2 = scanner.nextLine();
        if (pwd.equals(pwd2)) {
            System.out.println("密码一致");
        } else {
            System.out.println("密码不一致");
        }
    }
}
